class DeviceModel {
  String? deviceName;
  String? macAddr;
  int? deviceType;
  int? hubId;
  int? id;
  int? type;
  DeviceModel({this.deviceName,this.hubId,this.macAddr, this.deviceType,this.id,this.type});

  DeviceModel.fromJson(Map<String, dynamic> json) {
    deviceName = json['deviceName'];
    deviceType = json['deviceType'];
    hubId = json['hubId'];
    macAddr = json['macAddr'];
    type = json['type'];
    id = json['id'];
  }
}

class DeviceStatusModel {
  String? label;
  int? value;

  DeviceStatusModel({this.label, this.value});

  DeviceStatusModel.fromJson(Map<String, dynamic> json) {
    label = json['label'];
    value = json['value'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['label'] = this.label;
    data['value'] = this.value;
    return data;
  }
}




